set(LINK_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../libs/arm64-v8a)

set(UTF8PROC_LIBRARY "${LINK_DIRS}/libutf8proc.so")

set(UTF8PROC_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/utf8proc)
set(JSON_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/json/include)
include_directories(${UTF8PROC_INCLUDE_PATH} ${JSON_INCLUDE_PATH})

add_library(tokenizer SHARED BartTokenizer.cpp)
target_link_libraries(tokenizer ${UTF8PROC_LIBRARY})